<?php
foreach ($tree as $key => $value) {
    if ($value['Layer'] == 1) {
        echo $value['Name'] . '<br/>';
    } else {
        echo str_repeat('&nbsp;&nbsp;&nbsp;', $value['Layer'] - 2) . '|--' . $value['Name'] . '<br/>';
    }
}